<template>
  <view class="sixBox">
    <view class="six-title">{{items.name}}</view>
    <view class="six-c">
      <view
        class="six-b"
        v-for="item in items.gjList"
        :key="item.id"
        @tap="internationalSchools(items.detailId)"
      >
        <image class="b-img" :src="item.imgUrls"></image>
        <view class="b-title">{{ item.title }}</view>
      </view>
    </view>
    <navigator url="/pages/demo1/index">
      <view class="six-botton"> 查看更多 </view>
    </navigator>
  </view>
</template>

<script>
import Taro from "@tarojs/taro";
export default {
  props:['items'],
  data() {
    return {
     
    };
  },
  methods: {
    internationalSchools: function (detailId) {
      if(detailId==0){
        Taro.navigateTo({
        url: "/pages/InternationalSchools/index?id="+detailId,
      })
      }else if(detailId==1){
         Taro.navigateTo({
        url: "/pages/InternationalSchools1/index",
      })
      }else if(detailId==2){
         Taro.navigateTo({
        url: "/pages/InternationalSchools2/index",
      })
      }else if(detailId==3){
         Taro.navigateTo({
        url: "/pages/InternationalSchools3/index",
      })
      }
      
    },
  },
};
</script>

<style>
.sixBox {
  width: 100%;
  margin-top: 30px;
  background-color: white;
  overflow: hidden;
}
.six-title {
  font-size: 40px;
  text-align: center;
  height: 8%;
  margin: 0 auto;
  /* border-bottom: 7px solid #2A5F96; */
  line-height: 80px;
}
.six-c {
  height: 700px;
  width: 90%;
  margin: 5% auto;
  display: flex;
  flex-wrap: wrap;
  /* background-color: coral; */
}
.six-b {
  height: 50%;
  width: 33%;
  border-right: 1px dotted #ccc;
  border-bottom: 1px dotted #ccc;
  /* background-color: rgb(15, 208, 50); */
}
.six-b:nth-child(n + 4) {
  border-bottom: none;
}
.six-b:nth-child(3n) {
  border-right: none;
}
.b-img {
  margin-left: 26px;
  width: 80%;
  height: 60%;
  margin-top: 40px;
  /* background-color: blue; */
}
.b-title {
  height: 45px;
  overflow: hidden;
  text-align: center;
  margin-top: 20px;
}
.six-botton {
  width: 45%;
  height: 70px;
  margin: 50px auto;
  background-color: #0b6db6;
  text-align: center;
  line-height: 70px;
  color: white;
}
</style>
